package pl.polidea.imf.common.java.impl.storage;

import java.util.Enumeration;

public class FileLogStreamEnumeration implements Enumeration {
	
	final private Enumeration parent;
	final private String parentDir;
	
	public FileLogStreamEnumeration(String parentDir, Enumeration e) {
		parent = e;
		this.parentDir = parentDir; 
	}
	
	public boolean hasMoreElements() {
		return parent.hasMoreElements();
	}

	public Object nextElement() {
		return new FileLogStream(parentDir+parent.nextElement().toString());
	}
	
}
